import random


def shuffle_list(lst):
    length = len(lst)
    for i in range(length):
        j = random.randint(i, length-1)
        lst[i], lst[j] = lst[j], lst[i]
    return lst

if __name__ == '__main__':
    lst = [1, 2, 3, 4, 5]
    print(shuffle_list(lst))

